// 导入 封装的网络请求模块
import request from '@/utils/request'

/**
 * @description 登录
 * @param {string,string} data moblie. password
 * @returns  Promise
 */
export function login(data) {
  return request({
    url: '/sys/login',
    method: 'POST',
    data
  })
}
/**
 * @description: 获取用户资料
 * @param {*}
 * @return {*}
 */
export function getUserProfile() {
  return request({
    url: '/sys/profile',
    method: 'post'
  })
}
export function getUserDetaiById(id) {
  return request({
    url: '/sys/user/' + id,
    method: 'GET'
  })
}

export function getInfo(token) {}

export function logout() {}
